package cn.fangline.wo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 房源表
 * </p>
 *
 * @author 抽离
 * @since 2017-05-11
 */
public class House extends Model<House> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("house_id")
	private Long houseId;
    /**
     * 城市
     */
	@TableField("city_id")
	private Integer cityId;
    /**
     * 小区
     */
	private String section;
    /**
     * 室
     */
	private Integer room;
    /**
     * 厅
     */
	private Integer hall;
    /**
     * 卫
     */
	private Integer toilet;
    /**
     * 面积
     */
	private Float area;
    /**
     * 总价
     */
	@TableField("total_price")
	private Float totalPrice;
    /**
     * 单价
     */
	@TableField("unit_price")
	private Integer unitPrice;
    /**
     * 封面
     */
	@TableField("img_url")
	private String imgUrl;
    /**
     * 公司ID
     */
	@TableField("corp_id")
	private Integer corpId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 楼层
     */
	private String floor;
    /**
     * 朝向
     */
	private String towards;
    /**
     * 地址
     */
	private String address;

	@TableField(exist = false)
	private List<HouseImg> houseImg;

	@TableField("create_user")
	private Long createUser;

	@TableField(exist = false)
	private Long count;

	@TableField("origin_house_id")
	private String originHouseId;

	@TableField("origin_count")
	private Integer originCount;

	@TableField("update_time")
	private Date updateTime;

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getHouseId() {
		return houseId;
	}

	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public String getSection() {
		return section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public Integer getRoom() {
		return room;
	}

	public void setRoom(Integer room) {
		this.room = room;
	}

	public Integer getHall() {
		return hall;
	}

	public void setHall(Integer hall) {
		this.hall = hall;
	}

	public Integer getToilet() {
		return toilet;
	}

	public void setToilet(Integer toilet) {
		this.toilet = toilet;
	}

	public Float getArea() {
		return area;
	}

	public void setArea(Float area) {
		this.area = area;
	}

	public Float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Integer unitPrice) {
		this.unitPrice = unitPrice;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getCorpId() {
		return corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public String getTowards() {
		return towards;
	}

	public void setTowards(String towards) {
		this.towards = towards;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public List<HouseImg> getHouseImg() {
		return houseImg;
	}

	public void setHouseImg(List<HouseImg> houseImg) {
		this.houseImg = houseImg;
	}


	public Long getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}


	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}


	public String getOriginHouseId() {
		return originHouseId;
	}

	public void setOriginHouseId(String originHouseId) {
		this.originHouseId = originHouseId;
	}

	public Integer getOriginCount() {
		return originCount;
	}

	public void setOriginCount(Integer originCount) {
		this.originCount = originCount;
	}

	@Override
	public String toString() {
		return "House{" +
				"houseId=" + houseId +
				", cityId=" + cityId +
				", section='" + section + '\'' +
				", room=" + room +
				", hall=" + hall +
				", toilet=" + toilet +
				", area=" + area +
				", totalPrice=" + totalPrice +
				", unitPrice=" + unitPrice +
				", imgUrl='" + imgUrl + '\'' +
				", corpId=" + corpId +
				", createTime=" + createTime +
				", floor='" + floor + '\'' +
				", towards='" + towards + '\'' +
				", address='" + address + '\'' +
				", houseImg=" + houseImg +
				", createUser=" + createUser +
				", count=" + count +
				", originHouseId='" + originHouseId + '\'' +
				", originCount=" + originCount +
				'}';
	}

	@Override
	protected Serializable pkVal() {
		return this.houseId;
	}

}
